package com.costeaalex.MIDlets.remote.screens;

import javax.microedition.lcdui.Command;
import javax.microedition.lcdui.CommandListener;
import javax.microedition.lcdui.Displayable;
import javax.microedition.lcdui.Form;

import com.costeaalex.MIDlets.remote.BlueMIDlet;

public class ScreenSetupComplete implements CommandListener
	{
	
	public Form mainform;
	private Command cmExit;
	private BlueMIDlet midlet;
	
	public ScreenSetupComplete(BlueMIDlet midl)
		{
		midlet=midl;
		
		cmExit=new Command("Exit", Command.EXIT, 1);
		
		mainform = new Form("Connected");
		mainform.append("Follow the instructions on your PC application!");
		mainform.addCommand(cmExit);
		mainform.setCommandListener(this);
		}

	public void commandAction(Command c, Displayable d)
		{
		if(c==cmExit)
			{
			midlet.shutDown();
			}
		}

	}
